package com.authservice.authservice.mapper;

import com.authservice.authservice.domain.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author admin
* @description 针对表【user】的数据库操作Mapper
* @createDate 2025-04-07 11:33:11
* @Entity com.authservice.authservice.domain.User
*/
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User getByPhone(String account);

    /**
     * 新增用户
     * @param user
     */
    void add(User user);

    /**
     * 用户列表
     * @param user
     * @return
     */
    List<User> userList(User user);

}




